package com.ruoyi.user.api.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.shop.api.domain.CheCoupon;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户优惠券中间表对象 che_user_coupon
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CheUserCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 优惠卷 id【外键】 */
    @Excel(name = "优惠卷 id【外键】")
    private Long couponId;

    /** 领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 状态（数字字典）（已使用、待使用、已过期） */
    @Excel(name = "状态", readConverterExp = "数=字字典")
    private Long state;

    /** 用户id外键 */
    @Excel(name = "用户id外键")
    private Long userid;

    private CheCoupon cheCoupon;
}
